package com.cd2cd.mapper;

import com.cd2cd.mapper.gen.SuperProProjectMapper;
import org.apache.ibatis.annotations.*;

@Mapper
public interface ProProjectMapper extends SuperProProjectMapper {

    @ResultType(Integer.class)
    @Update("update pro_project set conf_json=#{confJson} where id=#{projectId}")
    Integer updateConfJsonById(@Param("confJson") String confJson, @Param("projectId") Long projectId);

    @ResultType(String.class)
    @Select("select conf_json from pro_project where id=#{id}")
    String queryConfJsonById(@Param("id") Long id);

}